﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using System.Xml.Linq;
//using System.Web.DynamicData;

public partial class Site : System.Web.UI.MasterPage
{

    protected string pathJS = string.Empty;
    protected string mPathSito = null;


    public Menu myMenu { get { return this.Menu1; } }

    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
        Response.Expires = -1500;
        Response.CacheControl = "no-cache";

        pathJS = Security.getPrimaryDomainUrl() + "/JavaScript/ds_Google.js";


    }//fM





    protected void LoginStatus1_LoggedOut(object sender, EventArgs e)
    {
        var tot = this.Menu1.Items.Count;
        if (this.Menu1.Items[tot - 1].Text == "Adm")
            this.Menu1.Items.Remove(this.Menu1.Items[tot - 1]);

    }//fM

}//fC
